package com.rla.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.rla.common.annotation.ExcelDictFormat;
import com.rla.common.convert.ExcelDictConvert;
import lombok.Data;


/**
 * 商品分类视图对象 base_drug_type
 *
 * @author rla
 * @date 2025-08-04
 */
@Data
@ExcelIgnoreUnannotated
public class BaseDrugTypeVo {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 父类型id
     */
    @ExcelProperty(value = "父类型id")
    private Long parentId;

    /**
     * 祖级列表
     */
    @ExcelProperty(value = "祖级列表")
    private String ancestors;

    /**
     * 类型名称
     */
    @ExcelProperty(value = "类型名称")
    private String name;

    /**
     * 显示顺序
     */
    @ExcelProperty(value = "显示顺序")
    private Long orderNum;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


}
